Optimal. Leaf size=315 \[ \frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}+\frac {4 b d^2 \sqrt {1-c^2 x^2} \sqrt {\frac {c (d+e x)}{c d+e}} \Pi \left (2;\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c e x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {d+e x}}+\frac {4 b d \sqrt {1-c^2 x^2} \sqrt {\frac {c (d+e x)}{c d+e}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {d+e x}}+\frac {4 b \sqrt {1-c^2 x^2} \sqrt {d+e x} E\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {\frac {c (d+e x)}{c d+e}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.46, antiderivative size = 315, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 11, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.611, Rules used = {5226, 1574, 958, 719, 419, 933, 168, 538, 537, 844, 424} \[ \frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}+\frac {4 b d^2 \sqrt {1-c^2 x^2} \sqrt {\frac {c (d+e x)}{c d+e}} \Pi \left (2;\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c e x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {d+e x}}+\frac {4 b d \sqrt {1-c^2 x^2} \sqrt {\frac {c (d+e x)}{c d+e}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {d+e x}}+\frac {4 b \sqrt {1-c^2 x^2} \sqrt {d+e x} E\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {\frac {c (d+e x)}{c d+e}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 168
Rule 419
Rule 424
Rule 537
Rule 538
Rule 719
Rule 844
Rule 933
Rule 958
Rule 1574
Rule 5226
Rubi steps
\begin {align*} \int \sqrt {d+e x} \left (a+b \sec ^{-1}(c x)\right ) \, dx &=\frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}-\frac {(2 b) \int \frac {(d+e x)^{3/2}}{\sqrt {1-\frac {1}{c^2 x^2}} x^2} \, dx}{3 c e}\\ &=\frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}-\frac {\left (2 b \sqrt {-\frac {1}{c^2}+x^2}\right ) \int \frac {(d+e x)^{3/2}}{x \sqrt {-\frac {1}{c^2}+x^2}} \, dx}{3 c e \sqrt {1-\frac {1}{c^2 x^2}} x}\\ &=\frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}-\frac {\left (2 b \sqrt {-\frac {1}{c^2}+x^2}\right ) \int \left (\frac {2 d e}{\sqrt {d+e x} \sqrt {-\frac {1}{c^2}+x^2}}+\frac {d^2}{x \sqrt {d+e x} \sqrt {-\frac {1}{c^2}+x^2}}+\frac {e^2 x}{\sqrt {d+e x} \sqrt {-\frac {1}{c^2}+x^2}}\right ) \, dx}{3 c e \sqrt {1-\frac {1}{c^2 x^2}} x}\\ &=\frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}-\frac {\left (4 b d \sqrt {-\frac {1}{c^2}+x^2}\right ) \int \frac {1}{\sqrt {d+e x} \sqrt {-\frac {1}{c^2}+x^2}} \, dx}{3 c \sqrt {1-\frac {1}{c^2 x^2}} x}-\frac {\left (2 b d^2 \sqrt {-\frac {1}{c^2}+x^2}\right ) \int \frac {1}{x \sqrt {d+e x} \sqrt {-\frac {1}{c^2}+x^2}} \, dx}{3 c e \sqrt {1-\frac {1}{c^2 x^2}} x}-\frac {\left (2 b e \sqrt {-\frac {1}{c^2}+x^2}\right ) \int \frac {x}{\sqrt {d+e x} \sqrt {-\frac {1}{c^2}+x^2}} \, dx}{3 c \sqrt {1-\frac {1}{c^2 x^2}} x}\\ &=\frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}-\frac {\left (2 b \sqrt {-\frac {1}{c^2}+x^2}\right ) \int \frac {\sqrt {d+e x}}{\sqrt {-\frac {1}{c^2}+x^2}} \, dx}{3 c \sqrt {1-\frac {1}{c^2 x^2}} x}+\frac {\left (2 b d \sqrt {-\frac {1}{c^2}+x^2}\right ) \int \frac {1}{\sqrt {d+e x} \sqrt {-\frac {1}{c^2}+x^2}} \, dx}{3 c \sqrt {1-\frac {1}{c^2 x^2}} x}-\frac {\left (2 b d^2 \sqrt {1-c^2 x^2}\right ) \int \frac {1}{x \sqrt {1-c x} \sqrt {1+c x} \sqrt {d+e x}} \, dx}{3 c e \sqrt {1-\frac {1}{c^2 x^2}} x}+\frac {\left (8 b d \sqrt {\frac {d+e x}{d+\frac {e}{c}}} \sqrt {1-c^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1-\frac {2 e x^2}{c \left (d+\frac {e}{c}\right )}}} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {2}}\right )}{3 c^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}\\ &=\frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}+\frac {8 b d \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} F\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}+\frac {\left (4 b d^2 \sqrt {1-c^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {2-x^2} \sqrt {d+\frac {e}{c}-\frac {e x^2}{c}}} \, dx,x,\sqrt {1-c x}\right )}{3 c e \sqrt {1-\frac {1}{c^2 x^2}} x}+\frac {\left (4 b \sqrt {d+e x} \sqrt {1-c^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {\sqrt {1-\frac {2 e x^2}{c \left (d+\frac {e}{c}\right )}}}{\sqrt {1-x^2}} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {2}}\right )}{3 c^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {\frac {d+e x}{d+\frac {e}{c}}}}-\frac {\left (4 b d \sqrt {\frac {d+e x}{d+\frac {e}{c}}} \sqrt {1-c^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1-\frac {2 e x^2}{c \left (d+\frac {e}{c}\right )}}} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {2}}\right )}{3 c^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}\\ &=\frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}+\frac {4 b \sqrt {d+e x} \sqrt {1-c^2 x^2} E\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {\frac {c (d+e x)}{c d+e}}}+\frac {4 b d \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} F\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}+\frac {\left (4 b d^2 \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {2-x^2} \sqrt {1-\frac {e x^2}{c \left (d+\frac {e}{c}\right )}}} \, dx,x,\sqrt {1-c x}\right )}{3 c e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}\\ &=\frac {2 (d+e x)^{3/2} \left (a+b \sec ^{-1}(c x)\right )}{3 e}+\frac {4 b \sqrt {d+e x} \sqrt {1-c^2 x^2} E\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {\frac {c (d+e x)}{c d+e}}}+\frac {4 b d \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} F\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}+\frac {4 b d^2 \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} \Pi \left (2;\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.60, size = 277, normalized size = 0.88 \[ \frac {2 \left (a (d+e x)^{3/2}+\frac {2 i b \sqrt {\frac {e (c x+1)}{e-c d}} \sqrt {\frac {e-c e x}{c d+e}} \left ((2 c d-e) F\left (i \sinh ^{-1}\left (\sqrt {-\frac {c}{c d+e}} \sqrt {d+e x}\right )|\frac {c d+e}{c d-e}\right )+(e-c d) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {c}{c d+e}} \sqrt {d+e x}\right )|\frac {c d+e}{c d-e}\right )-c d \Pi \left (\frac {e}{c d}+1;i \sinh ^{-1}\left (\sqrt {-\frac {c}{c d+e}} \sqrt {d+e x}\right )|\frac {c d+e}{c d-e}\right )\right )}{c^2 x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {-\frac {c}{c d+e}}}+b \sec ^{-1}(c x) (d+e x)^{3/2}\right )}{3 e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {e x + d} {\left (b \operatorname {arcsec}\left (c x\right ) + a\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 388, normalized size = 1.23 \[ \frac {\frac {2 \left (e x +d \right )^{\frac {3}{2}} a}{3}+2 b \left (\frac {\left (e x +d \right )^{\frac {3}{2}} \mathrm {arcsec}\left (c x \right )}{3}-\frac {2 \left (2 d \EllipticF \left (\sqrt {e x +d}\, \sqrt {\frac {c}{d c -e}}, \sqrt {\frac {d c -e}{d c +e}}\right ) c -\EllipticE \left (\sqrt {e x +d}\, \sqrt {\frac {c}{d c -e}}, \sqrt {\frac {d c -e}{d c +e}}\right ) c d -d \EllipticPi \left (\sqrt {e x +d}\, \sqrt {\frac {c}{d c -e}}, \frac {d c -e}{c d}, \frac {\sqrt {\frac {c}{d c +e}}}{\sqrt {\frac {c}{d c -e}}}\right ) c +\EllipticF \left (\sqrt {e x +d}\, \sqrt {\frac {c}{d c -e}}, \sqrt {\frac {d c -e}{d c +e}}\right ) e -\EllipticE \left (\sqrt {e x +d}\, \sqrt {\frac {c}{d c -e}}, \sqrt {\frac {d c -e}{d c +e}}\right ) e \right ) \sqrt {-\frac {\left (e x +d \right ) c -d c -e}{d c +e}}\, \sqrt {-\frac {\left (e x +d \right ) c -d c +e}{d c -e}}}{3 c^{2} \sqrt {\frac {c}{d c -e}}\, x \sqrt {\frac {c^{2} \left (e x +d \right )^{2}-2 c^{2} d \left (e x +d \right )+c^{2} d^{2}-e^{2}}{c^{2} e^{2} x^{2}}}}\right )}{e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \left (a+b\,\mathrm {acos}\left (\frac {1}{c\,x}\right )\right )\,\sqrt {d+e\,x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \operatorname {asec}{\left (c x \right )}\right ) \sqrt {d + e x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________